package com.loong.web.gp4j.api.baidu;

import com.loong.dilib.annotation.DIHeader;
import com.loong.dilib.annotation.DIN;
import com.loong.dilib.annotation.DIRequest;
import com.loong.web.gp4j.api.baidu.response.IPData;

/**
 * 百度API
 *
 * @author 张成轩
 */
@DIRequest("http://apis.baidu.com")
public interface BaiduApi {

	/**
	 * IP信息查看
	 * 
	 * @param apikey apikey
	 * @param ip ip
	 * @return 返回对象
	 */
	@DIRequest("apistore/iplookupservice/iplookup")
	public BaiduResponse<IPData> ipLookup(@DIHeader @DIN("apikey") String apikey, @DIN("ip") String ip);
}
